package com.king.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @author king
 * @date 2020/9/13 21:05
 */
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    private static final String FALL_BACK = "Payment Fallback~~~~~~~~~~";
    @Override
    public String paymentInfoOK(Integer id) {
        return FALL_BACK;
    }

    @Override
    public String paymentInfoTimeout(Integer id) {
        return FALL_BACK;
    }

    @Override
    public String paymentInfoTimeout3(Integer id) {
        return FALL_BACK;
    }
}
